import xcRequest from '@/service/index.js'
export function registerUser(data) {
  return xcRequest.get({
    url: '/reg.php',
    params: data
  })
}
export function addUserRequest(data) {
  return xcRequest.get({
    url: '/users/addUsers.php',
    params: data
  })
}
export function getAllUsersRequest(page) {
  return xcRequest.post({
    url: '/users/getAllUsers.php',
    data: {
      page
    }
  })
}
export function editUsersRequest(data) {
  return xcRequest.get({
    url: '/users/updateUsers.php',
    params: data
  })
}
export function editUsersPowerRequest(data) {
  return xcRequest.get({
    url: '/users/usersPower.php',
    params: data
  })
}
export function deteleUserstRequest(data) {
  return xcRequest.get({
    url: '/users/delUsers.php',
    params: data
  })
}
export function loginUser(data) {
  return xcRequest.post({
    url: '/login.php',
    data
  })
}
export function getUserPower(params) {
  return xcRequest.get({
    url: '/users/userLoginAccess.php',
    params
  })
}
